package com.scu.hotelsystem.service;

import com.scu.hotelsystem.pojo.RoomCate;

import java.util.List;

public interface RoomCateService {
    /**
     * 按条件筛选获取某页Vip类型列表
     * @param search 筛选条件
     * @param index 起始位置
     * @param limit 长度
     * @return
     */
    List<RoomCate> searchRoomCateList(RoomCate search, int index, int limit);

    /**
     * 修改Room类型信息
     * @param roomCate
     * @return 成功1，失败0
     */
    int updateRoomCate(RoomCate roomCate);

    /**
     * 添加Room类型
     * @param roomCate
     * @return 成功1或2，失败0
     */
    int addRoomCate(RoomCate roomCate);

    /**
     * 批量删除Room类型
     * @param idList ID数组
     * @return >0成功，=0失败
     * @throws IllegalArgumentException 传入数组不能为空
     */
    int deleteRoomCate(int[] idList) throws IllegalArgumentException;
}
